package com.heima.article.feign;

import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient("leadnews-admin")
public interface AdminFeign {

    /*
       {
        "host":"132323",
        "code":1212,
        "errorMessage":"fdf",
        "":[    ]
       }
     */
    @GetMapping("/api/v1/channel/channels")
    ResponseResult  selectAllChannel();
}